﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using Hockey.GameEngine;
using Hockey.Shared;
using E = Hockey.Engine;

namespace Hockey
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // register objects to the service locator
            Board board = new Board();
            ServiceLocator.RegisterService(typeof(IBoard), board);
            ServiceLocator.RegisterService(typeof(IBoardForEngine), board);
            ServiceLocator.RegisterService(typeof(IEngine), new E.Engine());


            //MainWindow wnd = new MainWindow();
            //Run(wnd);
        }
    }
}
